//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.kun.portal.webframe.dao;

import com.kun.portal.webframe.po.FwTeamPo;
import com.kun.portal.webframe.po.FwUserPo;
import java.util.List;
import java.util.Set;
import javax.persistence.QueryHint;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.stereotype.Repository;

@Repository
public interface FwUserDao extends JpaRepository<FwUserPo, String>, JpaSpecificationExecutor<FwUserPo> {
    Page<FwUserPo> findByCreatorAndUserNameContainingOrderByUserIdDesc(String var1, String var2, Pageable var3);

    @QueryHints({@QueryHint(
            name = "org.hibernate.cacheable",
            value = "true"
    )})
    List<FwUserPo> findByUserNameEquals(String var1);

    Page<FwUserPo> findByTeamsAndUserNameLike(Set<FwTeamPo> var1, String var2, Pageable var3);

    Page<FwUserPo> findByUserNameLikeOrUserCnNameLike(String var1, String var2, Pageable var3);

    @Query("select p from FwUserPo p where p.userName like ?1 or p.userCnName like ?1 ")
    Page<FwUserPo> findAllByKey(String var1, Pageable var2);

    FwUserPo findByUserName(String var1);

    FwUserPo findByUserCnName(String var1);

    FwUserPo findByPhone(String var1);

    FwUserPo findByEmail(String var1);
}
